package ch07;

/**
 * Created by hasee on 2017/6/20.
 */
public class plus {
    public static void main(String[] args) {


        int[] a = {1, 2, 3, 4, 5, 5, 6, 7, 8, 5, 6, 7};
        int[] b = {3, 4, 3, 6, 1, 3, 4, 7, 3, 4, 5, 6};
        //建立int数组c盛放ab元素分别相加的结果
        //
        int[] c = new int[a.length];
        for (int i = 0; i < a.length; i++) {
            c[i] = a[i] + b[i];
        }
        System.out.println(c);

    }}
